package cn.ssm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.ssm.pojo.Pager;
import cn.ssm.pojo.Student;
import cn.ssm.query.StudentQuery;

@Repository("studentMapper")

public interface StudentMapper {
	
	public int insertStudent(Student s ); 
	
	public List<Student> selectStudentlist2(@Param("form") int form,@Param("pageSize") int pageSize);
	
	public List<StudentQuery> selectStudentlist(@Param("form") int form,@Param("pageSize") int pageSize);
	
	public int deleteStudent(@Param("id") int id);
	
	public int UpdateStudent(Student s ); 
	
	public Student selectStuById(@Param("id")int id);
	
	public Integer selectStuCount();
	public Integer selectStuCountByClassId(@Param("classsId")int classsId);
	
	public Student selectStuByClassId(int classId);
	
	public List<StudentQuery> selectStudentlistByClassId(@Param("classId")int classId,@Param("form") int form,@Param("pageSize") int pageSize);
	
	
	
	public List<Student> selStuByUserName(@Param("userName")String userName);
}
